package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * SMS发送记录
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_sms")
public class Sms implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 短信商家
     */
    private String merchant;

    /**
     * 模板ID
     */
    private String template;

    /**
     * 短信内容
     */
    private String content;

    /**
     * 第三方商家ID
     */
    private String bizId;

    /**
     * 请求ID，第三方商家返回
     */
    private String requestId;

    /**
     * 发送手机数量
     */
    private Integer sendPhoneCount;

    /**
     * 是否发送[0：否；1：是]
     */
    private Boolean isSend;

    /**
     * 发送时间
     */
    private LocalDateTime sendDatetime;

    /**
     * 第三方错误码
     */
    private String responseCode;

    /**
     * 第三方错误信息
     */
    private String responseMessage;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getMerchant() {
        return merchant;
    }

    public void setMerchant(String merchant) {
        this.merchant = merchant;
    }
    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }
    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
    public Integer getSendPhoneCount() {
        return sendPhoneCount;
    }

    public void setSendPhoneCount(Integer sendPhoneCount) {
        this.sendPhoneCount = sendPhoneCount;
    }
    public Boolean getSend() {
        return isSend;
    }

    public void setSend(Boolean isSend) {
        this.isSend = isSend;
    }
    public LocalDateTime getSendDatetime() {
        return sendDatetime;
    }

    public void setSendDatetime(LocalDateTime sendDatetime) {
        this.sendDatetime = sendDatetime;
    }
    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }
    public String getResponseMessage() {
        return responseMessage;
    }

    public void setResponseMessage(String responseMessage) {
        this.responseMessage = responseMessage;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "Sms{" +
            "id=" + id +
            ", merchant=" + merchant +
            ", template=" + template +
            ", content=" + content +
            ", bizId=" + bizId +
            ", requestId=" + requestId +
            ", sendPhoneCount=" + sendPhoneCount +
            ", isSend=" + isSend +
            ", sendDatetime=" + sendDatetime +
            ", responseCode=" + responseCode +
            ", responseMessage=" + responseMessage +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
